@ECHO ON
set systemdir=C:\Windows\SysWOW64
@ECHO Copying OPCDAAuto.dll to system directory...
 
copy OPCDAAuto.dll %systemdir%
cd %systemdir%
@ECHO Registering OPCDAAuto.dll...
 
REGSVR32 /s OPCDAAuto.dll
aprxdist.exe
opcenum /regserver